package com.qzd.proxy.staticproxy;

/**
 * 创建一个代理
 */
public class ProxyStudy implements IPerson {
    private IPerson person;

    public ProxyStudy (IPerson tager){
        this.person=tager;
    }

    public void proxy() {
        before();
        person.proxy();
        after();
    }

    private void after() {
        System.out.println("代理学习完成");
    }

    private void before() {
        System.out.println("代理学习准备");
    }
}
